package com.teamwork_backend.mapper;

import com.teamwork_backend.entity.Resumes;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author windy
 * @since 2021-04-25
 */
public interface ResumesDao extends BaseMapper<Resumes> {

    @Select("SELECT * FROM `resumes` WHERE resumes.userid IN (SELECT users.userid FROM users WHERE account = #{account})")
    Resumes getResumesByAccount(@Param("account") String account);

}
